package com.milo.java7.codeblock;

/**
 * @author Milo Lee
 * @date 2021-04-23 15:44
 */
public class Student extends People {
    {
        System.out.println("子类构造代码块");
    }
    static {
        System.out.println("子类静态代码块");
    }

    public Student() {
        super(null);
        System.out.println("子类无参构造方法");
    }

    public Student(String str) {
        System.out.println("子类有参构造方法");
    }

    public static void main(String[] args) {
        new Student();
        /*System.out.println("==========华丽丽分割线===============");
        new Student("milo");*/
    }

}
